package io.xccit.train.common.page;

import java.util.List;

/**
 * @author CH_ywx
 * @version 1.0
 * @create 2024/11/14
 * <p>分页返回</p>
 */
public class PageVO<T> {

    private long total;

    private Integer page;

    private List<T> content;

    public PageVO() {}

    public PageVO(long total, Integer page, List<T> content) {
        this.total = total;
        this.page = page;
        this.content = content;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public List<T> getContent() {
        return content;
    }

    public void setContent(List<T> content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "PageVO{" +
                "total=" + total +
                ", page=" + page +
                ", content=" + content +
                '}';
    }
}
